package com.smarttest.common.beans.protolcol.can;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author Lyn(tanqunlin@huoyunren.com)
 * @date 2015年1月14日 下午5:53:50
 */
public class CanDetail implements Serializable{
	/**  */
	private static final long serialVersionUID = 6960034454447384204L;
	public static final int TYPE_CTBOX = 0;
	public static final int TYPE_SMART_CAN = 1;
	/**
	 * imei
	 */
	private String imei;
	
	/**
	 * 0: ctbox明细  1: smart明细
	 */
	private int type;
	/**
	 * 采集时间
	 */
	@JSONField(ordinal=1,format="yyyy/MM/dd HH:mm:ss") 
	private Date createTime;

	/**
	 * 发动机转速
	 */
	private int engineSpeed = -1;
	/**
	 * 瞬时油耗
	 */
	private double engineFuel = -1;
	/**
	 * 总油耗
	 */
	private double engineTotalFuel = -1;
	/**
	 * 刹车，0:刹车释放/1：刹车压紧
	 */
	private int brake = -1;

	/**
	 * 车速
	 */
	private double vehicleSpeed = -1;

	/**
	 * 车辆总里程
	 */
	private double totalDistance = -1;

	/**
	 * 节流阀（油门强度）
	 */
	private int throttleValve = -1;

	/**
	 * 发动机冷却液温度
	 */
	private double engineCoolantTemperature = -1;
	/**
	 * 燃油压力
	 */
	private int fuelPressure = -1;
	/**
	 * 进气歧管绝对压力
	 */
	private double manifoldAbsolutePressure = -1;

	/**
	 * 发动机进气口温度
	 */
	private double engineInletTemperature = -1;
	/**
	 * 空气流量
	 */
	private double airFlow = -1;

	/**
	 * 节气门位置传感器
	 */
	private double solarTermDoorPositionSensor = -1;

	/**
	 * 发动机启动后运行时间
	 */
	private double engineRunningTime = -1;

	/**
	 * 冲程油量
	 */
	private int strokeFuel = -1;

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getEngineSpeed() {
		return engineSpeed;
	}

	public void setEngineSpeed(int engineSpeed) {
		this.engineSpeed = engineSpeed;
	}

	public double getEngineFuel() {
		return engineFuel;
	}

	public void setEngineFuel(double engineFuel) {
		this.engineFuel = engineFuel;
	}

	public double getEngineTotalFuel() {
		return engineTotalFuel;
	}

	public void setEngineTotalFuel(double engineTotalFuel) {
		this.engineTotalFuel = engineTotalFuel;
	}

	public int getBrake() {
		return brake;
	}

	public void setBrake(int brake) {
		this.brake = brake;
	}

	public double getVehicleSpeed() {
		return vehicleSpeed;
	}

	public void setVehicleSpeed(double vehicleSpeed) {
		this.vehicleSpeed = vehicleSpeed;
	}

	public double getTotalDistance() {
		return totalDistance;
	}

	public void setTotalDistance(double totalDistance) {
		this.totalDistance = totalDistance;
	}

	public int getThrottleValve() {
		return throttleValve;
	}

	public void setThrottleValve(int throttleValve) {
		this.throttleValve = throttleValve;
	}

	public double getEngineCoolantTemperature() {
		return engineCoolantTemperature;
	}

	public void setEngineCoolantTemperature(double engineCoolantTemperature) {
		this.engineCoolantTemperature = engineCoolantTemperature;
	}

	public int getFuelPressure() {
		return fuelPressure;
	}

	public void setFuelPressure(int fuelPressure) {
		this.fuelPressure = fuelPressure;
	}

	public double getManifoldAbsolutePressure() {
		return manifoldAbsolutePressure;
	}

	public void setManifoldAbsolutePressure(double manifoldAbsolutePressure) {
		this.manifoldAbsolutePressure = manifoldAbsolutePressure;
	}

	public double getEngineInletTemperature() {
		return engineInletTemperature;
	}

	public void setEngineInletTemperature(double engineInletTemperature) {
		this.engineInletTemperature = engineInletTemperature;
	}

	public double getAirFlow() {
		return airFlow;
	}

	public void setAirFlow(double airFlow) {
		this.airFlow = airFlow;
	}

	public double getSolarTermDoorPositionSensor() {
		return solarTermDoorPositionSensor;
	}

	public void setSolarTermDoorPositionSensor(
			double solarTermDoorPositionSensor) {
		this.solarTermDoorPositionSensor = solarTermDoorPositionSensor;
	}

	public double getEngineRunningTime() {
		return engineRunningTime;
	}

	public void setEngineRunningTime(double engineRunningTime) {
		this.engineRunningTime = engineRunningTime;
	}

	public int getStrokeFuel() {
		return strokeFuel;
	}

	public void setStrokeFuel(int strokeFuel) {
		this.strokeFuel = strokeFuel;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	

	@Override
	public String toString() {
		return "CanDetail [imei=" + imei + ", type=" + type + ", createTime="
				+ createTime + ", engineSpeed=" + engineSpeed + ", engineFuel="
				+ engineFuel + ", engineTotalFuel=" + engineTotalFuel
				+ ", brake=" + brake + ", vehicleSpeed=" + vehicleSpeed
				+ ", totalDistance=" + totalDistance + ", throttleValve="
				+ throttleValve + ", engineCoolantTemperature="
				+ engineCoolantTemperature + ", fuelPressure=" + fuelPressure
				+ ", manifoldAbsolutePressure=" + manifoldAbsolutePressure
				+ ", engineInletTemperature=" + engineInletTemperature
				+ ", airFlow=" + airFlow + ", solarTermDoorPositionSensor="
				+ solarTermDoorPositionSensor + ", engineRunningTime="
				+ engineRunningTime + ", strokeFuel=" + strokeFuel + "]";
	}

}
